/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.lsp.model;

import java.math.BigDecimal;

/**
 *
 * @author griddy
 */
public class Bicycle {

    public Bicycle() {
        this.wheel = 2;
        this.rider = 1;
    }

    public Bicycle(BigDecimal frameWeight) {
        this.wheel = 2;
        this.rider = 1;
        this.frameWeight = frameWeight;
    }
    
    public BigDecimal calculateKeneticEnergy(BigDecimal meterPerSecond,BigDecimal riderWieght)
    {
        //E=m.(v*v)
        return BigDecimal.valueOf((frameWeight.doubleValue()+riderWieght.doubleValue() )* Math.pow(meterPerSecond.doubleValue(), 2));
    }
    
      public BigDecimal getFrameWeight() {
        return frameWeight;
    }

    public void setFrameWeight(BigDecimal frameWeight) {
        this.frameWeight = frameWeight;
    }

    public int getRider() {
        return rider;
    }

    public void setRider(int rider) {
        this.rider = rider;
    }

    public int getWheel() {
        return wheel;
    }

    public void setWheel(int wheel) {
        this.wheel = wheel;
    }
    
    private int wheel;
    private int rider;
    private BigDecimal frameWeight;
    
    
    
}
